package com.keppardo.dyndns;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.Serializable;


/**
 * Read the java object from file system
 * @author epelli
 *
 */
public class ObjectSerializer {
	
	
	public static void serialize(Serializable ser,String path) throws IOException{
		FileOutputStream fout = new FileOutputStream(path);
		ObjectOutputStream objOut = new ObjectOutputStream(fout);
		objOut.writeObject(ser);
		objOut.flush();
		objOut.close();
		
	}

}
